package cn.jiyun.service;

import cn.jiyun.pojo.DTO.OrdersDto;
import cn.jiyun.pojo.cokpit.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;


/**
 * 订单表(Orders)表服务接口
 *
 * @author makejava
 * @since 2024-12-20 09:38:33
 */
@Service
public interface OrdersService extends IService<Orders> {

    Integer getUnansweredOrders();

    Integer getOrderComplete();

    List<Integer> getDataMorning();

    List<Integer>  getDataAfternoon();

    Integer getData();

    List<String> getDatesInRange(OrdersDto ordersDto);

    List<String> getOrderCountsInRange(OrdersDto ordersDto);

    List<String> getOrderCountsInRange2(OrdersDto ordersDto);

    BigDecimal getInflow();

    List<BigDecimal> getTotalAmountInRange(OrdersDto ordersDto);

    List<BigDecimal> getTotalDriverEarningsInRange(OrdersDto ordersDto);

    List<BigDecimal> getTheTotalWriteOffAmountWithinTheRange(OrdersDto ordersDto);

    List<BigDecimal> getEarningsAmount(OrdersDto ordersDto);

    List<BigDecimal> getAvgTotalAmount(OrdersDto ordersDto);

    List<BigDecimal> getAvgDriverIncome(OrdersDto ordersDto);

    List<BigDecimal> getTotalCancelMoney(OrdersDto ordersDto);

    List<BigDecimal> getAvgEarnings(OrdersDto ordersDto);

    List<Integer> getLoginStatistics(OrdersDto ordersDto);

    List<BigDecimal> getPerCapitaIncome(OrdersDto ordersDto);

    Double getEarnings();


    Double getComplaint();

    List<String> findDateAll();

    ArrayList<List<Double>> getBoxWhiskerList(OrdersDto ordersDto) throws ParseException;
}


